<template>
    <input type="text" :value="value" @input="iptChange" placeholder="请输入愿望">
</template>

<script>
export default {
    name: '',
    props: {
        value: ''
    },
    data() { 
        return {

        }
    },
    created() {

    },
    methods:{
        iptChange(e) {
            this.$emit('input', e.target.value)
        }
    },
}
</script>

<style scoped lang="scss">
    input {
        width: 80%;
        margin: 20px auto;
        height: 40px;
        font-size: 20px;
    }
</style>